//
//  headView.m
//  QuickCare
//
//  Created by 孙宏毅 on 16/7/12.
//  Copyright © 2016年 lidabiao. All rights reserved.
//

#import "loginPhoneViewController.h"
#import "headView.h"
#import "AppDelegate.h"


@interface headView ()

@property (weak, nonatomic) IBOutlet UIButton *loginButton;
@property (weak, nonatomic) IBOutlet UIButton *registerButton;
@property (weak, nonatomic) IBOutlet UIImageView *touXiang;

@end

@implementation headView

+(instancetype)headView
{
    return [[[NSBundle mainBundle]loadNibNamed:@"headView" owner:self options:nil] lastObject];
}


-(void)awakeFromNib
{
    self.backgroundColor = [UIColor colorWithRed:47/255.0 green:198/255.0 blue:197/255.0 alpha:1];
}

-(void)layoutSubviews
{
    
}

- (IBAction)clickLoginButton:(id)sender
{

    if ([self.loginDelegate respondsToSelector:@selector(clickLoginButtonWithView:)]) {
        
        [self.loginDelegate clickLoginButtonWithView:self];
        
    }
    
}



@end
